feat(portfolio-truth): emit canonical cross-store project registry#51
Merged
Conversation
Adds project_registry.py: joins the four stores that key projects differently (auditor project_key, bridge-db project_name, Notion Local Portfolio titles, ~/.claude memory slugs) under one canonical key so events stop going unmatched. - publish_portfolio_truth now emits project-registry.json each run via the existing staged atomic-write set - resolve(): override table for hard normalization failures (notion_os-> Notion, jcc->JobCommandCenter) + a collision guard (screenshotselect -> ScreenshottoDataSelect, not ScreenshotAnnotate); no fuzzy matching - config/project-registry-overrides.json: operator-editable enrollment; adds personal-ops + SecondBrain as supplementary (absent from auditor) - notion_scoring_page_id backfilled from the Project Portfolio data source - every external source optional/degrades gracefully (CI-safe) - 10 tests; existing 43 publish tests still pass
…ilent first-wins Code-review hardening: the resolver index keeps the first entry on a normalized-form clash, so a second project normalizing to the same form would silently mis-resolve. Detect clashes during index build and emit them under warnings.normalized_key_collisions (live registry has none today). Adds 2 tests.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
| try: | ||
| configured = json.loads(config_path.read_text()).get("sources", {}) | ||
| sources.update({k: v for k, v in configured.items() if v}) | ||
| except (json.JSONDecodeError, OSError): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generates
project-registry.jsoneach run, joining the four stores that key projects differently (auditorproject_key, bridge-dbproject_name, Notion Local Portfolio titles, ~/.claude memory slugs) under one canonical key so events stop going unmatched.src/project_registry.py: join +resolve()(override table for hard normalization failures, collision guard, no fuzzy matching)publish_portfolio_truthemits the registry via the existing staged atomic-write setconfig/project-registry-overrides.json: operator-editable enrollment; adds personal-ops + SecondBrain as supplementary (absent from auditor)notion_scoring_page_idbackfilled from the Project Portfolio data source (read-only)warningsinstead of silent first-winsTests: 12 new; existing 43 publish tests still pass; ruff clean.